home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-09-25 | 2.3 KB | 54 lines | [TEXT/MPS ] |
- This sample is a direct extension of the LowerToUpperCaseScrap sample. It
- completes the sample by adding the file translation part. Hence the name
- change.
-
- Original Author Anonymous
- --
-
- Modified By
- R.Silva, 9/11/95
-
-
- LowerToUpperCase
- ----------------
-
- LowerToUpperCase is a sample Translation Manager (Macintosh Easy Open)
- translator which is FAT (contains both 68K and PowerPC code). It is an
- example on how to write a translator which exploits
- the performance of the Power Macintosh, but at the same time retains full
- compatibility with the 68K line of Macintosh Computers.
-
- The LowerToUpperCase sample code actually constructs a "safe accelerated
- resource", which is a variant of an accelerated resource that will run
- without crashing on pre-Mixed mode machines. For details look at the file
- MixedMode.r and examine the definition of the 'sdes' resource type.
-
- The translator converts 'TEXT' to 'UPPR' (TEXT to upper case). To see the
- scrap translation execute,you can write a simple program which does a
- GetScrap(h, 'UPPR', &offset) and have 'TEXT' on the clipboard prior to
- executing that line of code. To see the file translation execute
- you can use the sample app, UpperDocDemo, included in this folder that uses
- files of type 'UPPR'. This sample app was created by modifying the
- Metrowerk's PowerPlant sample DocDemo68K. It also uses the scrap translation
- for cutting and pasting.
-
-
-
- How do you build it?
- ------------------
- From the Macintosh on RISC CD or other developer CD's, install the MPW PPC
- compiler and other tools into your MPW. Also install the Macintosh Easy Open
- PowerPC / 68K interfaces and libraries into those directories too.
-
- Once that's done, simply set your current directory to the one containing the
- source to the LowerToUpperCase translator and execute the script
- BuildLowerToUpperCase.
-
- A version of the make file, "PreRelease.make", for the Prerelease MPW environment
- is also included. If you want to use it simply rename it to "LowerToUpperCase.make"
- and use the the BuildLowerToUpperCase script. The Macinstosh Easy Open PowerPC/ 68K
- libraries must be placed in the appropriate directories for the make to succeed.
- You can check the make file to see where the libraries are expected. Note that
- the pragma unused is not recognized in the Pre Release version so you may want to
- comment them out.
-